﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ERPMVC.Models.contasapagar>" %>



<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lançar conta
</asp:Content>


   



<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	 
	 <link type="text/css" href="../../Content/jquery-ui-1.8rc3.custom.css" rel="stylesheet" />
     <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
     <script src="../../Scripts/jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            $('#Vencimento').datepicker({
                changeMonth: true,
                changeYear: true,
                showOn: 'button',
                buttonImage: '../../Content/images/calendar.gif',
                buttonImageOnly: true,
                dateFormat: 'dd/mm/yy',
                dayNamesMin: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'],
                monthNamesShort: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
            });
        });

    </script>
        
    <form id="form1" runat="server">

        
    <h2>Lançar conta</h2>

    <% using (Html.BeginForm()) {%>
 
        <%= Html.ValidationSummary("Lançamento sem sucesso. Corrija os erros e tente novamente.") %>
&nbsp;<fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%= Html.Label("Documento")  %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.documento)%>
                <%= Html.ValidationMessageFor(model => model.documento, "*")%>
            </div>
            <div class="editor-label">
                <%= Html.Label("Favorecido")%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.favorecido) %>
                <%= Html.ValidationMessageFor(model => model.favorecido, "*")%>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Descrição")%>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.descricao, new { cols="40", rows="5"} ) %>
                <%= Html.ValidationMessageFor(model => model.descricao) %>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Título")%>
                
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.titulo) %>
                <%= Html.ValidationMessageFor(model => model.titulo, "*")%>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Multa")%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.multa) %>
                <%= Html.ValidationMessageFor(model => model.multa, "*")%>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Juros") %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.juros) %>
                <%= Html.ValidationMessageFor(model => model.juros, "*")%>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Vencimento")  %> 
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.vencimento, new { id="Vencimento" })%>
                <%= Html.ValidationMessageFor(model => model.vencimento, "*")%>                 
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Pago) %>
            </div>
            <div class="editor-field">
                <%= Html.CheckBoxFor(model =>model.Pago) %>
                <%= Html.ValidationMessageFor(model => model.Pago)%>
            </div>
            <div class="editor-label">
                <%= Html.Label("Conta Bancaria")%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ContaBancaria.ID) %>
                <%= Html.ValidationMessageFor(model => model.ContaBancaria.ID, "*") %>
            </div>
            
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Voltar", "Index") %>
    </div>

    </form>

</asp:Content>

